#pragma once

#include <vector>
#include <string>

namespace uvpp
{
	using Bytes = std::vector<unsigned char>;

	class IMessageCodec {
	public:
		IMessageCodec() {}
		virtual ~IMessageCodec() {}

		virtual int MessageToBytes(std::string& message, Bytes bytes) = 0;
		virtual int BytesToMessage(Bytes bytes, std::string &message) = 0;
	};
}